#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-6-20 17:35

'''
用户输入和while循环
'''

# people_num = input('请问几位用餐：')
# people_num = int(people_num)
# if people_num > 8:
#     print('对不起，没有这么大的空桌了！')
# else:
#     print('好的，这边请！')

# current_num = 1
# while current_num <= 5:
#     print(current_num)
#     current_num += 1

# current_num = 0
# while current_num < 10:
#     current_num += 1
#     if current_num % 2 == 0:
#         continue
#     print(current_num)

# 点菜
# promt = '请输入您要点的菜名，'
# promt += '\n点完后请输入 “quit” 进行退出：'
# menu = []
# while True:
#     message = input(promt)
#     if message != 'quit':
#         promt = '请继续：'
#         menu.append(message)
#         continue
#     else:
#         break
# print(menu)

# ordered_menu = ['小炒肉', '凉拌菜', '香煎鲫鱼', '水煮鱼', '酸菜鱼', '剁椒鱼头', '香辣牛蛙']
# if '水煮鱼' in ordered_menu:
#     print('对不起，今天鱼卖完了！')
#     ordered_menu.remove('水煮鱼')
# finished_menu = []
# while ordered_menu:
#     ordered_food = ordered_menu.pop()
#     print(f'当前正在烹饪的为：{ordered_food}')
#     finished_menu.append(ordered_food)
# print(finished_menu)



ordered_menu = ['小炒肉', '凉拌菜', '香煎鲫鱼', '水煮鱼', '酸菜鱼', '剁椒鱼头', '香辣牛蛙']
ordered_food = ordered_menu.pop()
#ordered_menu.remove(ordered_food.find())
print(ordered_menu)